<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #div_1{
            position: relative;
            margin: 0px auto;
            border: solid 1px red;
            width: 370px;
        }
        .img_1{
            position: relative;
            top: 2px;
            opacity: 0.5;
            left: 2px;
            width: 180px;
            object-fit: cover;
        }
        .img_1:hover{
            opacity: 1;
        }
    </style>
</head>
<body>
    <div id="div_1">
        <img src="https://img1.baidu.com/it/u=724179003,4096104503&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500" alt="" class="img_1">
        <img src="https://img1.baidu.com/it/u=724179003,4096104503&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500" alt="" class="img_1">
        <img src="https://img1.baidu.com/it/u=724179003,4096104503&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500" alt="" class="img_1">
        <img src="https://img1.baidu.com/it/u=724179003,4096104503&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500" alt="" class="img_1">
    </div>
</body>
</html>